<?php 
$dataProvider->pagination->pageSize = 4;
?>

This is topic home

<?php if(Yii::app()->user->isAdmin): ?>

<a href="<?php echo $this->createTopicUrl; ?>">Create Topic</a>
<?php endif; ?>




<?php 
	$this->widget('ext.extended.ListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
)); ?>


<?php 
$this->widget('CListPager', array(
	'pages'=>$dataProvider->pagination,
));
?>